package com.dailyblue.java.project.smbms.address.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("smbms_address")
@NoArgsConstructor
@AllArgsConstructor
public class Address implements Serializable {

    private Integer id;
    private String contact;
    private String addressDesc;
    private String postCode;
    private String tel;
    private Integer userId;
    private String creationDate;
    private Integer defaultAddress;

    public Address(String contact, String addressDesc, String postCode, String tel, Integer userId,int defaultAddress) {
        this.contact = contact;
        this.addressDesc = addressDesc;
        this.postCode = postCode;
        this.tel = tel;
        this.userId = userId;
        this.defaultAddress = defaultAddress;
    }
}
